package com.design.managers;

import java.util.ArrayList;
import java.util.List;

import com.design.components.Image;

public class ImagesManager {

	private List <Image> images;
	
	protected ImagesManager() {
		images = new ArrayList <Image> ();
	}

	protected void setImages(List <Image> images) {
		this.images = images;
	}

	protected List <Image> getImages() {
		return images;
	}
	
	public Image get (int idx) {
		return images.get(idx);
	}
	
	public void set (int idx, Image i) {
		images.set(idx, i);
	}
	
	public void add (Image i) {
		images.add(i);
	}
	
	public void add (int idx, Image i) {
		images.add(idx, i);
	}
	
	public Image remove (int idx) {
		return images.remove(idx);
	}
	
	public int size () {
		return images.size();
	}
	
}
